#gallery{width:300px;overflow:hidden;}
#gallery #slides{max-height:400px;width:300px;overflow:hidden;}
#gallery .slide{float:left;}
#gallery .slide img{width:294px;max-height:392px;padding:3px;}
#gallery ul{margin:0px auto;padding:3px 0;text-align:center;}
#gallery ul>li{margin:0;padding:0;}
#gallery ul li{text-align:center;display:inline-table;list-style:none;overflow:hidden;}
#gallery ul li.inact:hover{background:#d70707;}
#gallery ul li.act,li.act:hover{background:#d70707;}
#gallery ul li.act a{cursor:default;}
#gallery ul li a img{border:none;width:50px;height:50px;padding:1px;}
